from model import school_dimension, race_dimension

class QueryBuilder(object):
    def __init__(self):
        pass

    def assemble(self):
        self.query = select([school_dimension.c.school, race_dimension.c.nativeamerican], 
                            from_obj=[record_fact.join(school_dimension).join(race_dimension)])

    def results(self, connection):
        self.assemble()
        return connection.execute(self.query)
